package com.itheima.homework.countDownLatch;

import java.util.concurrent.CountDownLatch;

public class CountDownLatchTest {
    public static void main(String[] args) {
        CountDownLatch cd = new CountDownLatch(2);
        new Thread(new Ming(cd)).start();
        new Thread(new Wang(cd)).start();
        new Thread(new Ba(cd)).start();
    }
}
